package no.sachmuld.methodcombination.examples.reflection.clossimplestyle.foo;

import java.util.Arrays;
import java.util.List;

/**
 *
 */
public class FooY extends FooX {

    public FooY() {
        with(new FooBehaviour() {

            @Override
            public String list() {
                return "FooY";
            }

            @Override
            public List<String> append() {
                return Arrays.asList("FooY");
            }

            @Override
            public boolean or() {
                return false;
            }

            @Override
            public boolean and() {
                return false;
            }

            @Override
            public void all() {
                System.out.println("FooY");
            }

            @Override
            public int sum() {
                return 2;
            }

            @Override
            public int min() {
                return 2;
            }

            @Override
            public int max() {
                return 2;
            }
        });
    }
}
